package com.cenwangkeji.resident.ui.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.cenwangkeji.resident.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @松 on 2019/11/8 12:41
 */
public class QuestionimageAdapter extends BaseQuickAdapter<String , BaseViewHolder> {
    public QuestionimageAdapter(@Nullable List<String> data) {
        super(R.layout.item_question_image, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
       helper.addOnClickListener(R.id.iv_delete);
        Glide.with(mContext).load(item).into((ImageView) helper.getView(R.id.iv));
    }
}
